"""
for i in range(1, 10):
    for j in range(1, 10):
        print(f"{i}*{j}={i * j:2}", end=" ")
        if i == j:
            print("")
            break
"""
a=1
while a < 10:
    b = 1
    while b <= a:
        print(f"{a}*{b}={(a*b):2}", end=' ')
        if a == b:
            print(" ")
        b += 1
    a += 1
